[INFO] fetching crate doc-quad 0.1.1...
[INFO] testing doc-quad-0.1.1 against master#cced03bfd61a304243a34504618ecec86c17063f for pr-154065-2
[INFO] extracting crate doc-quad 0.1.1 into /workspace/builds/worker-2-tc1/source
[INFO] started tweaking crates.io crate doc-quad 0.1.1
[INFO] removed 0 missing examples
[INFO] removed 0 missing tests
[INFO] finished tweaking crates.io crate doc-quad 0.1.1
[INFO] tweaked toml for crates.io crate doc-quad 0.1.1 written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] validating manifest of crates.io crate doc-quad 0.1.1 on toolchain cced03bfd61a304243a34504618ecec86c17063f
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cced03bfd61a304243a34504618ecec86c17063f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate crates.io crate doc-quad 0.1.1 already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cced03bfd61a304243a34504618ecec86c17063f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded novtb v0.1.10
[INFO] [stderr]   Downloaded core_affinity v0.8.3
[INFO] [stderr]   Downloaded geo v0.27.0
[INFO] [stderr]   Downloaded libblur v0.23.3
[INFO] [stderr]   Downloaded zaft v0.3.5
[INFO] [stderr]   Downloaded fast-canny v0.1.0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 6ca706509176368c658ddc7fc9d544ed8df408b7b89a185dd36dd30e23b9ee60
[INFO] running `Command { std: "docker" "start" "6ca706509176368c658ddc7fc9d544ed8df408b7b89a185dd36dd30e23b9ee60", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "6ca706509176368c658ddc7fc9d544ed8df408b7b89a185dd36dd30e23b9ee60" "/opt/rustwide/cargo-home/bin/cargo" "+cced03bfd61a304243a34504618ecec86c17063f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "6ca706509176368c658ddc7fc9d544ed8df408b7b89a185dd36dd30e23b9ee60", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "6ca706509176368c658ddc7fc9d544ed8df408b7b89a185dd36dd30e23b9ee60" "/opt/rustwide/cargo-home/bin/cargo" "+cced03bfd61a304243a34504618ecec86c17063f" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling libm v0.2.16
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling proc-macro2 v1.0.106
[INFO] [stderr]    Compiling crossbeam-utils v0.8.21
[INFO] [stderr]    Compiling libc v0.2.186
[INFO] [stderr]    Compiling semver v1.0.28
[INFO] [stderr]    Compiling either v1.15.0
[INFO] [stderr]    Compiling lock_api v0.4.14
[INFO] [stderr]    Compiling rayon-core v1.13.0
[INFO] [stderr]    Compiling hash32 v0.2.1
[INFO] [stderr]    Compiling spin v0.9.8
[INFO] [stderr]    Compiling smallvec v1.15.1
[INFO] [stderr]    Compiling rustc_version v0.4.1
[INFO] [stderr]    Compiling stable_deref_trait v1.2.1
[INFO] [stderr]    Compiling matrixmultiply v0.3.10
[INFO] [stderr]    Compiling itertools v0.11.0
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling rawpointer v0.2.1
[INFO] [stderr]    Compiling heapless v0.7.17
[INFO] [stderr]    Compiling robust v1.2.0
[INFO] [stderr]    Compiling crossbeam-epoch v0.9.18
[INFO] [stderr]    Compiling quote v1.0.45
[INFO] [stderr]    Compiling syn v2.0.117
[INFO] [stderr]    Compiling log v0.4.29
[INFO] [stderr]    Compiling crossbeam-deque v0.8.6
[INFO] [stderr]    Compiling bumpalo v3.20.2
[INFO] [stderr]    Compiling num_cpus v1.17.0
[INFO] [stderr]    Compiling rayon v1.12.0
[INFO] [stderr]    Compiling core_affinity v0.8.3
[INFO] [stderr]    Compiling geographiclib-rs v0.2.7
[INFO] [stderr]    Compiling float_next_after v1.0.0
[INFO] [stderr]    Compiling novtb v0.1.10
[INFO] [stderr]    Compiling glam v0.24.2
[INFO] [stderr]    Compiling num-complex v0.4.6
[INFO] [stderr]    Compiling rstar v0.11.0
[INFO] [stderr]    Compiling approx v0.5.1
[INFO] [stderr]    Compiling num-integer v0.1.46
[INFO] [stderr]    Compiling spade v2.15.1
[INFO] [stderr]    Compiling earcutr v0.4.3
[INFO] [stderr]    Compiling geo-types v0.7.19
[INFO] [stderr]    Compiling ndarray v0.15.6
[INFO] [stderr]    Compiling bytemuck_derive v1.10.2
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling geo v0.27.0
[INFO] [stderr]    Compiling libblur v0.23.3
[INFO] [stderr]    Compiling bytemuck v1.25.0
[INFO] [stderr]    Compiling fast-canny v0.1.0
[INFO] [stderr]    Compiling doc-quad v0.1.1 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 04s
[INFO] running `Command { std: "docker" "inspect" "6ca706509176368c658ddc7fc9d544ed8df408b7b89a185dd36dd30e23b9ee60", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "6ca706509176368c658ddc7fc9d544ed8df408b7b89a185dd36dd30e23b9ee60" "/opt/rustwide/cargo-home/bin/cargo" "+cced03bfd61a304243a34504618ecec86c17063f" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling memchr v2.8.0
[INFO] [stderr]    Compiling syn v2.0.117
[INFO] [stderr]    Compiling log v0.4.29
[INFO] [stderr]    Compiling num-integer v0.1.46
[INFO] [stderr]    Compiling anyhow v1.0.102
[INFO] [stderr]    Compiling thiserror v2.0.18
[INFO] [stderr]    Compiling zerocopy v0.8.48
[INFO] [stderr]    Compiling arrayvec v0.7.6
[INFO] [stderr]    Compiling as-slice v0.2.1
[INFO] [stderr]    Compiling paste v1.0.15
[INFO] [stderr]    Compiling num-bigint v0.4.6
[INFO] [stderr]    Compiling av-scenechange v0.14.1
[INFO] [stderr]    Compiling built v0.8.0
[INFO] [stderr]    Compiling aligned v0.4.3
[INFO] [stderr]    Compiling regex-syntax v0.8.10
[INFO] [stderr]    Compiling no_std_io2 v0.9.3
[INFO] [stderr]    Compiling nom v8.0.0
[INFO] [stderr]    Compiling aho-corasick v1.1.4
[INFO] [stderr]    Compiling pastey v0.1.1
[INFO] [stderr]    Compiling y4m v0.8.0
[INFO] [stderr]    Compiling rav1e v0.8.1
[INFO] [stderr]    Compiling quick-error v2.0.1
[INFO] [stderr]    Compiling bitstream-io v4.10.0
[INFO] [stderr]    Compiling maybe-rayon v0.1.1
[INFO] [stderr]    Compiling simd_helpers v0.1.0
[INFO] [stderr]    Compiling itertools v0.14.0
[INFO] [stderr]    Compiling num-rational v0.4.2
[INFO] [stderr]    Compiling new_debug_unreachable v1.0.6
[INFO] [stderr]    Compiling imgref v1.12.0
[INFO] [stderr]    Compiling regex-automata v0.4.14
[INFO] [stderr]    Compiling noop_proc_macro v0.3.0
[INFO] [stderr]    Compiling zune-core v0.5.1
[INFO] [stderr]    Compiling weezl v0.1.12
[INFO] [stderr]    Compiling utf8parse v0.2.2
[INFO] [stderr]    Compiling anstyle-parse v1.0.0
[INFO] [stderr]    Compiling zune-jpeg v0.5.15
[INFO] [stderr]    Compiling loop9 v0.1.5
[INFO] [stderr]    Compiling avif-serialize v0.8.8
[INFO] [stderr]    Compiling zune-inflate v0.2.54
[INFO] [stderr]    Compiling bitflags v2.11.1
[INFO] [stderr]    Compiling is_terminal_polyfill v1.70.2
[INFO] [stderr]    Compiling lebe v0.5.3
[INFO] [stderr]    Compiling rgb v0.8.53
[INFO] [stderr]    Compiling bit_field v0.10.3
[INFO] [stderr]    Compiling colorchoice v1.0.5
[INFO] [stderr]    Compiling color_quant v1.1.0
[INFO] [stderr]    Compiling anstyle-query v1.1.5
[INFO] [stderr]    Compiling anstyle v1.0.14
[INFO] [stderr]    Compiling pxfm v0.1.29
[INFO] [stderr]    Compiling gif v0.14.2
[INFO] [stderr]    Compiling image-webp v0.2.4
[INFO] [stderr]    Compiling anstream v1.0.0
[INFO] [stderr]    Compiling geo v0.27.0
[INFO] [stderr]    Compiling png v0.18.1
[INFO] [stderr]    Compiling ndarray v0.15.6
[INFO] [stderr]    Compiling regex v1.12.3
[INFO] [stderr]    Compiling env_filter v1.0.1
[INFO] [stderr]    Compiling equator-macro v0.4.2
[INFO] [stderr]    Compiling zerocopy-derive v0.8.48
[INFO] [stderr]    Compiling thiserror-impl v2.0.18
[INFO] [stderr]    Compiling bytemuck_derive v1.10.2
[INFO] [stderr]    Compiling equator v0.4.2
[INFO] [stderr]    Compiling aligned-vec v0.6.4
[INFO] [stderr]    Compiling v_frame v0.3.9
[INFO] [stderr]    Compiling profiling-procmacros v1.0.17
[INFO] [stderr]    Compiling arg_enum_proc_macro v0.3.4
[INFO] [stderr]    Compiling profiling v1.0.17
[INFO] [stderr]    Compiling bytemuck v1.25.0
[INFO] [stderr]    Compiling av1-grain v0.2.5
[INFO] [stderr]    Compiling num-derive v0.4.2
[INFO] [stderr]    Compiling fax_derive v0.2.0
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling fax v0.2.6
[INFO] [stderr]    Compiling fast-canny v0.1.0
[INFO] [stderr]    Compiling qoi v0.4.1
[INFO] [stderr]    Compiling moxcms v0.8.1
[INFO] [stderr]    Compiling jiff v0.2.24
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling doc-quad v0.1.1 (/opt/rustwide/workdir)
[INFO] [stderr]    Compiling env_logger v0.11.10
[INFO] [stderr]    Compiling half v2.7.1
[INFO] [stderr]    Compiling tiff v0.11.3
[INFO] [stderr]    Compiling exr v1.74.0
[INFO] [stderr]    Compiling ravif v0.13.0
[INFO] [stderr]    Compiling image v0.25.10
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 2m 13s
[INFO] running `Command { std: "docker" "inspect" "6ca706509176368c658ddc7fc9d544ed8df408b7b89a185dd36dd30e23b9ee60", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "6ca706509176368c658ddc7fc9d544ed8df408b7b89a185dd36dd30e23b9ee60" "/opt/rustwide/cargo-home/bin/cargo" "+cced03bfd61a304243a34504618ecec86c17063f" "test" "--frozen", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.31s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/doc_quad-0af3fb21ed736cd5)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]      Running tests/stride_test.rs (/opt/rustwide/target/debug/deps/stride_test-ac5cd74977073042)
[INFO] [stdout] 
[INFO] [stdout] running 3 tests
[INFO] [stdout] test test_buffer_overflow_protection ... ok
[INFO] [stdout] test test_contiguous_buffer_detection ... ok
[INFO] [stdout] test test_strided_buffer_detection ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- test_strided_buffer_detection stdout ----
[INFO] [stdout] [2026-06-13T22:22:56Z DEBUG doc_quad::core::buffer] [Core::DocBuffer] - Buffer initialized: 640x480, stride=700. Elapsed: 0µs
[INFO] [stdout] [2026-06-13T22:22:56Z INFO  doc_quad] [Lib::find_document] - START: input=640x480, total_pixels=307200, stride=700
[INFO] [stdout] [2026-06-13T22:22:56Z DEBUG doc_quad] [Lib::find_document] - Downsample decision: total_pixels=307200, threshold=786432, scale=1.0000
[INFO] [stdout] [2026-06-13T22:22:56Z DEBUG doc_quad] [Lib::find_document] - Strided memory (stride=700 > width=640), compacting rows.
[INFO] [stdout] [2026-06-13T22:22:56Z DEBUG doc_quad::core::buffer] [Core::DocBuffer] - ArrayView2 mapped: 640x480, row_stride=700
[INFO] [stdout] [2026-06-13T22:22:56Z INFO  doc_quad] [Lib::find_document] - Processing resolution: 640x480, proc_data_len=307200
[INFO] [stdout] [2026-06-13T22:22:56Z DEBUG doc_quad::core::buffer] [Core::DocBuffer] - Buffer initialized: 640x480, stride=640. Elapsed: 0µs
[INFO] [stdout] [2026-06-13T22:22:56Z INFO  doc_quad] [Lib::find_document] - Stage 3: Edge detection (Canny + morphological close).
[INFO] [stdout] [2026-06-13T22:22:56Z INFO  fast_canny::kernel] [kernel::detect] selected: AVX2+FMA
[INFO] [stdout] [2026-06-13T22:22:56Z INFO  fast_canny::workspace] [CannyWorkspace::new] 640x480, ~3120 KB, 79.991µs
[INFO] [stdout] [2026-06-13T22:22:56Z INFO  doc_quad::edge::detector] [Edge::Detector] - CannyWorkspace pre-allocated for 640x480.
[INFO] [stdout] [2026-06-13T22:22:56Z DEBUG doc_quad::core::buffer] [Core::DocBuffer] - ArrayView2 mapped: 640x480, row_stride=640
[INFO] [stdout] [2026-06-13T22:22:56Z DEBUG doc_quad::edge::threshold] [Edge::Threshold] - Thresholds: low=33.50, high=66.50, median=50, sigma=0.33. Elapsed: 6381µs
[INFO] [stdout] [2026-06-13T22:22:56Z INFO  doc_quad::edge::detector] [Edge::Detector] - Pixel brightness distribution: dark(0-63)=80.5%, mid(64-191)=0.0%, bright(192-255)=19.5%
[INFO] [stdout] [2026-06-13T22:22:56Z INFO  doc_quad::edge::detector] [Edge::Detector] - Histogram peak bucket: [48-63] = 247200 pixels (80.5%)
[INFO] [stdout] [2026-06-13T22:22:56Z INFO  doc_quad::edge::detector] [Edge::Detector] - Adaptive thresholds: low=33.50, high=66.50 (image=640x480, sigma=0.33)
[INFO] [stdout] [2026-06-13T22:22:56Z DEBUG doc_quad::edge::detector] [Edge::Detector] - Input is contiguous (stride==width=640), direct copy.
[INFO] [stdout] [2026-06-13T22:22:56Z INFO  doc_quad::edge::detector] [Edge::Detector] - [DEBUG] Threshold sensitivity scan (sigma=1.0, 3 trial configs):
[INFO] [stdout] [2026-06-13T22:22:57Z INFO  fast_canny::hysteresis] [track_edges] START 640x480 total=307200
[INFO] [stdout] [2026-06-13T22:22:57Z DEBUG fast_canny::hysteresis] [track_edges] seeds=1012 (0.3%), scan=19.158819ms
[INFO] [stdout] [2026-06-13T22:22:57Z DEBUG fast_canny::hysteresis] [track_edges] BFS promoted=4, elapsed=184.35µs
[INFO] [stdout] [2026-06-13T22:22:57Z DEBUG fast_canny::hysteresis] [track_edges] orphans=0 (0.0%), cleanup=9.63863ms
[INFO] [stdout] [2026-06-13T22:22:57Z INFO  fast_canny::hysteresis] [track_edges] END seeds=1012 promoted=4 orphans=0 38.907ms
[INFO] [stdout] [2026-06-13T22:22:57Z INFO  doc_quad::edge::detector] [Edge::Detector] - [DEBUG]   low=2.0, high=8.0 -> edge_pixels=1016, density=0.33%
[INFO] [stdout] [2026-06-13T22:22:57Z INFO  fast_canny::hysteresis] [track_edges] START 640x480 total=307200
[INFO] [stdout] [2026-06-13T22:22:57Z DEBUG fast_canny::hysteresis] [track_edges] seeds=1012 (0.3%), scan=8.95336ms
[INFO] [stdout] [2026-06-13T22:22:57Z DEBUG fast_canny::hysteresis] [track_edges] BFS promoted=0, elapsed=180.87µs
[INFO] [stdout] [2026-06-13T22:22:57Z DEBUG fast_canny::hysteresis] [track_edges] orphans=0 (0.0%), cleanup=4.85783ms
[INFO] [stdout] [2026-06-13T22:22:57Z INFO  fast_canny::hysteresis] [track_edges] END seeds=1012 promoted=0 orphans=0 21.119ms
[INFO] [stdout] [2026-06-13T22:22:57Z INFO  doc_quad::edge::detector] [Edge::Detector] - [DEBUG]   low=5.0, high=20.0 -> edge_pixels=1012, density=0.33%
[INFO] [stdout] [2026-06-13T22:22:57Z INFO  fast_canny::hysteresis] [track_edges] START 640x480 total=307200
[INFO] [stdout] [2026-06-13T22:22:57Z DEBUG fast_canny::hysteresis] [track_edges] seeds=1008 (0.3%), scan=11.76753ms
[INFO] [stdout] [2026-06-13T22:22:57Z DEBUG fast_canny::hysteresis] [track_edges] BFS promoted=4, elapsed=171.02µs
[INFO] [stdout] [2026-06-13T22:22:57Z DEBUG fast_canny::hysteresis] [track_edges] orphans=0 (0.0%), cleanup=15.84557ms
[INFO] [stdout] [2026-06-13T22:22:57Z INFO  fast_canny::hysteresis] [track_edges] END seeds=1008 promoted=4 orphans=0 41.577ms
[INFO] [stdout] [2026-06-13T22:22:57Z INFO  doc_quad::edge::detector] [Edge::Detector] - [DEBUG]   low=10.0, high=40.0 -> edge_pixels=1012, density=0.33%
[INFO] [stdout] [2026-06-13T22:22:57Z INFO  doc_quad::edge::detector] [Edge::Detector] - [DEBUG] Low-sigma scan (sigma=0.5, low=5.0, high=20.0):
[INFO] [stdout] [2026-06-13T22:22:57Z INFO  fast_canny::hysteresis] [track_edges] START 640x480 total=307200
[INFO] [stdout] [2026-06-13T22:22:57Z DEBUG fast_canny::hysteresis] [track_edges] seeds=1004 (0.3%), scan=3.845219ms
[INFO] [stdout] [2026-06-13T22:22:57Z DEBUG fast_canny::hysteresis] [track_edges] BFS promoted=0, elapsed=166.54µs
[INFO] [stdout] [2026-06-13T22:22:57Z DEBUG fast_canny::hysteresis] [track_edges] orphans=0 (0.0%), cleanup=1.88892ms
[INFO] [stdout] [2026-06-13T22:22:57Z INFO  fast_canny::hysteresis] [track_edges] END seeds=1004 promoted=0 orphans=0 10.816ms
[INFO] [stdout] [2026-06-13T22:22:57Z INFO  doc_quad::edge::detector] [Edge::Detector] - [DEBUG]   sigma=0.5, low=5.0, high=20.0 -> edge_pixels=1004, density=0.33%
[INFO] [stdout] [2026-06-13T22:22:57Z INFO  fast_canny::hysteresis] [track_edges] START 640x480 total=307200
[INFO] [stdout] [2026-06-13T22:22:57Z DEBUG fast_canny::hysteresis] [track_edges] seeds=1008 (0.3%), scan=3.735559ms
[INFO] [stdout] [2026-06-13T22:22:57Z DEBUG fast_canny::hysteresis] [track_edges] BFS promoted=0, elapsed=188.92µs
[INFO] [stdout] [2026-06-13T22:22:57Z DEBUG fast_canny::hysteresis] [track_edges] orphans=0 (0.0%), cleanup=1.82465ms
[INFO] [stdout] [2026-06-13T22:22:57Z INFO  fast_canny::hysteresis] [track_edges] END seeds=1008 promoted=0 orphans=0 10.567ms
[INFO] [stdout] [2026-06-13T22:22:57Z INFO  doc_quad::edge::detector] [Edge::Detector] - Canny raw result: edge_pixels=1008, density=0.33%, size=640x480. Canny elapsed: 102ms
[INFO] [stdout] [2026-06-13T22:22:57Z INFO  doc_quad::edge::detector] [Edge::Detector] - [DEBUG] Edge spatial distribution (raw_canny) in 4x4 grid (cell=160x120px):
[INFO] [stdout] [2026-06-13T22:22:57Z INFO  doc_quad::edge::detector] [Edge::Detector] - [DEBUG]   +------+------+------+------++
[INFO] [stdout] [2026-06-13T22:22:57Z INFO  doc_quad::edge::detector] [Edge::Detector] - [DEBUG]   |  0.4% |  0.8% |  0.5% |  0.0% |
[INFO] [stdout] [2026-06-13T22:22:57Z INFO  doc_quad::edge::detector] [Edge::Detector] - [DEBUG]   |  0.6% |  0.0% |  0.6% |  0.0% |
[INFO] [stdout] [2026-06-13T22:22:57Z INFO  doc_quad::edge::detector] [Edge::Detector] - [DEBUG]   |  0.6% |  0.8% |  0.7% |  0.0% |
[INFO] [stdout] [2026-06-13T22:22:57Z INFO  doc_quad::edge::detector] [Edge::Detector] - [DEBUG]   |  0.0% |  0.0% |  0.0% |  0.0% |
[INFO] [stdout] [2026-06-13T22:22:57Z INFO  doc_quad::edge::detector] [Edge::Detector] - [DEBUG]   +------+------+------+------++
[INFO] [stdout] [2026-06-13T22:22:57Z DEBUG doc_quad::edge::detector] [Edge::Detector] - Applying morphological close: radius=2 (image=640x480)
[INFO] [stdout] [2026-06-13T22:22:57Z DEBUG doc_quad::edge::morphology] [Edge::Morphology] - Close operation start: 640x480, radius=2
[INFO] [stdout] [2026-06-13T22:22:58Z DEBUG doc_quad::edge::morphology] [Edge::Morphology] - Dilate done: radius=2, src_edges=1008, dst_edges=5050, growth_ratio=5.01x. Elapsed: 208ms
[INFO] [stdout] [2026-06-13T22:22:58Z DEBUG doc_quad::edge::morphology] [Edge::Morphology] - Erode done: radius=2, src_edges=5050, dst_edges=1018. Elapsed: 29ms
[INFO] [stdout] [2026-06-13T22:22:58Z INFO  doc_quad::edge::morphology] [Edge::Morphology] - Close done: src_edges=1008, closed_edges=1018, net_change=+10. Elapsed: 247ms
[INFO] [stdout] [2026-06-13T22:22:58Z INFO  doc_quad::edge::detector] [Edge::Detector] - After morphological close: edge_pixels=1018, density=0.33%, net_change=+10 (+1.0%). Total elapsed: 1364ms
[INFO] [stdout] [2026-06-13T22:22:58Z INFO  doc_quad::edge::detector] [Edge::Detector] - [DEBUG] Edge spatial distribution (after_close) in 4x4 grid (cell=160x120px):
[INFO] [stdout] [2026-06-13T22:22:58Z INFO  doc_quad::edge::detector] [Edge::Detector] - [DEBUG]   +------+------+------+------++
[INFO] [stdout] [2026-06-13T22:22:58Z INFO  doc_quad::edge::detector] [Edge::Detector] - [DEBUG]   |  0.4% |  0.8% |  0.5% |  0.0% |
[INFO] [stdout] [2026-06-13T22:22:58Z INFO  doc_quad::edge::detector] [Edge::Detector] - [DEBUG]   |  0.6% |  0.0% |  0.6% |  0.0% |
[INFO] [stdout] [2026-06-13T22:22:58Z INFO  doc_quad::edge::detector] [Edge::Detector] - [DEBUG]   |  0.7% |  0.8% |  0.8% |  0.0% |
[INFO] [stdout] [2026-06-13T22:22:58Z INFO  doc_quad::edge::detector] [Edge::Detector] - [DEBUG]   |  0.0% |  0.0% |  0.0% |  0.0% |
[INFO] [stdout] [2026-06-13T22:22:58Z INFO  doc_quad::edge::detector] [Edge::Detector] - [DEBUG]   +------+------+------+------++
[INFO] [stdout] [2026-06-13T22:22:58Z INFO  doc_quad] [Lib::find_document] - Stage 3 result: edge_pixels=1018, density=0.33%
[INFO] [stdout] [2026-06-13T22:22:58Z INFO  doc_quad] [Lib::find_document] - Stage 4: Contour extraction.
[INFO] [stdout] [2026-06-13T22:22:58Z INFO  doc_quad] [Lib::find_document] - Stage 4 result: 6 raw contours extracted.
[INFO] [stdout] [2026-06-13T22:22:58Z INFO  doc_quad] [Lib::find_document] - Stage 5: Pre-filter params: min_perimeter=19.2px (ratio=0.03), min_bbox_area=1536px² (ratio=0.005), max_bbox_area=304128px² (ratio=0.99)
[INFO] [stdout] [2026-06-13T22:22:58Z DEBUG doc_quad] [Lib::find_document] - Contour perimeter distribution (bucket_width=32.0px, 0~320.0px+):
[INFO] [stdout] [2026-06-13T22:22:58Z DEBUG doc_quad] [Lib::find_document] -   [0.0~32.0px]: 6 contours
[INFO] [stdout] [2026-06-13T22:22:58Z INFO  doc_quad] [Lib::find_document] - Stage 5 result: 0/6 contours remain. Rejected: too_short/small_perimeter=6, too_small_bbox=0, too_large_bbox=0
[INFO] [stdout] [2026-06-13T22:22:58Z WARN  doc_quad] [Lib::find_document] - No contours survived pre-filter. Current thresholds: min_perimeter=19.2px, min_bbox_area=1536px². All 6 raw contours were too short/small. This typically means edge continuity is poor — check Canny output or increase morphological close radius.
[INFO] [stdout] [2026-06-13T22:22:58Z INFO  doc_quad] [Lib::find_document] - Detection finished. Found=false. Total Elapsed: 1388ms
[INFO] [stdout] 
[INFO] [stdout] thread 'test_strided_buffer_detection' (2170) panicked at tests/stride_test.rs:28:5:
[INFO] [stdout] Should detect the rectangular document
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x5bb31d1cbd28 - std[929523f510218772]::backtrace_rs::backtrace::libunwind::trace
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9
[INFO] [stdout]    1:     0x5bb31d1cbd28 - std[929523f510218772]::backtrace_rs::backtrace::trace_unsynchronized::<std[929523f510218772]::sys::backtrace::_print_fmt::{closure#1}>
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
[INFO] [stdout]    2:     0x5bb31d1cbd28 - std[929523f510218772]::sys::backtrace::_print_fmt
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/sys/backtrace.rs:74:9
[INFO] [stdout]    3:     0x5bb31d1cbd28 - <<std[929523f510218772]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace as core[28b146924c2f19c6]::fmt::Display>::fmt
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/sys/backtrace.rs:44:26
[INFO] [stdout]    4:     0x5bb31d1e370a - <core[28b146924c2f19c6]::fmt::rt::Argument>::fmt
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/core/src/fmt/rt.rs:152:76
[INFO] [stdout]    5:     0x5bb31d1e370a - core[28b146924c2f19c6]::fmt::write
[INFO] [stdout]    6:     0x5bb31d1d1cb2 - std[929523f510218772]::io::default_write_fmt::<alloc[95e62e727ddf147d]::vec::Vec<u8>>
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/io/mod.rs:622:11
[INFO] [stdout]    7:     0x5bb31d1d1cb2 - <alloc[95e62e727ddf147d]::vec::Vec<u8> as std[929523f510218772]::io::Write>::write_fmt
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/io/mod.rs:1977:13
[INFO] [stdout]    8:     0x5bb31d1a9d06 - <std[929523f510218772]::sys::backtrace::BacktraceLock>::print
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/sys/backtrace.rs:47:9
[INFO] [stdout]    9:     0x5bb31d1a9d06 - std[929523f510218772]::panicking::default_hook::{closure#0}
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/panicking.rs:292:27
[INFO] [stdout]   10:     0x5bb31d1c40f9 - std[929523f510218772]::panicking::default_hook
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/panicking.rs:316:9
[INFO] [stdout]   11:     0x5bb31cfe3cfc - <alloc[95e62e727ddf147d]::boxed::Box<dyn for<'a, 'b> core[28b146924c2f19c6]::ops::function::Fn<(&'a std[929523f510218772]::panic::PanicHookInfo<'b>,), Output = ()> + core[28b146924c2f19c6]::marker::Sync + core[28b146924c2f19c6]::marker::Send> as core[28b146924c2f19c6]::ops::function::Fn<(&std[929523f510218772]::panic::PanicHookInfo,)>>::call
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/alloc/src/boxed.rs:2291:9
[INFO] [stdout]   12:     0x5bb31cfe3cfc - test[6ec0502068880816]::test_main_inner::<test[6ec0502068880816]::test_main_static::{closure#0}>::{closure#0}
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/test/src/lib.rs:155:21
[INFO] [stdout]   13:     0x5bb31d1c4372 - <alloc[95e62e727ddf147d]::boxed::Box<dyn for<'a, 'b> core[28b146924c2f19c6]::ops::function::Fn<(&'a std[929523f510218772]::panic::PanicHookInfo<'b>,), Output = ()> + core[28b146924c2f19c6]::marker::Sync + core[28b146924c2f19c6]::marker::Send> as core[28b146924c2f19c6]::ops::function::Fn<(&std[929523f510218772]::panic::PanicHookInfo,)>>::call
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/alloc/src/boxed.rs:2291:9
[INFO] [stdout]   14:     0x5bb31d1c4372 - std[929523f510218772]::panicking::panic_with_hook
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/panicking.rs:833:13
[INFO] [stdout]   15:     0x5bb31d1a9df4 - std[929523f510218772]::panicking::panic_handler::{closure#0}
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/panicking.rs:691:13
[INFO] [stdout]   16:     0x5bb31d19eeb9 - std[929523f510218772]::sys::backtrace::__rust_end_short_backtrace::<std[929523f510218772]::panicking::panic_handler::{closure#0}, !>
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/sys/backtrace.rs:182:18
[INFO] [stdout]   17:     0x5bb31d1aaadd - __rustc[acf6043c977865fb]::rust_begin_unwind
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/panicking.rs:689:5
[INFO] [stdout]   18:     0x5bb31d1e3f7c - core[28b146924c2f19c6]::panicking::panic_fmt
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/core/src/panicking.rs:80:14
[INFO] [stdout]   19:     0x5bb31cd42137 - stride_test[344a3a561893282d]::test_strided_buffer_detection
[INFO] [stdout]                                at /opt/rustwide/workdir/tests/stride_test.rs:28:5
[INFO] [stdout]   20:     0x5bb31cd41ea7 - stride_test[344a3a561893282d]::test_strided_buffer_detection::{closure#0}
[INFO] [stdout]                                at /opt/rustwide/workdir/tests/stride_test.rs:12:35
[INFO] [stdout]   21:     0x5bb31cd43d16 - <stride_test[344a3a561893282d]::test_strided_buffer_detection::{closure#0} as core[28b146924c2f19c6]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   22:     0x5bb31cfd6ddb - <fn() -> core[28b146924c2f19c6]::result::Result<(), alloc[95e62e727ddf147d]::string::String> as core[28b146924c2f19c6]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x5bb31cfd6ddb - test[6ec0502068880816]::__rust_begin_short_backtrace::<core[28b146924c2f19c6]::result::Result<(), alloc[95e62e727ddf147d]::string::String>, fn() -> core[28b146924c2f19c6]::result::Result<(), alloc[95e62e727ddf147d]::string::String>>
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/test/src/lib.rs:724:18
[INFO] [stdout]   24:     0x5bb31cfe4655 - test[6ec0502068880816]::run_test_in_process::{closure#0}
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/test/src/lib.rs:747:74
[INFO] [stdout]   25:     0x5bb31cfe4655 - <core[28b146924c2f19c6]::panic::unwind_safe::AssertUnwindSafe<test[6ec0502068880816]::run_test_in_process::{closure#0}> as core[28b146924c2f19c6]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/core/src/panic/unwind_safe.rs:275:9
[INFO] [stdout]   26:     0x5bb31cfe4655 - std[929523f510218772]::panicking::catch_unwind::do_call::<core[28b146924c2f19c6]::panic::unwind_safe::AssertUnwindSafe<test[6ec0502068880816]::run_test_in_process::{closure#0}>, core[28b146924c2f19c6]::result::Result<(), alloc[95e62e727ddf147d]::string::String>>
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/panicking.rs:581:40
[INFO] [stdout]   27:     0x5bb31cfe4655 - std[929523f510218772]::panicking::catch_unwind::<core[28b146924c2f19c6]::result::Result<(), alloc[95e62e727ddf147d]::string::String>, core[28b146924c2f19c6]::panic::unwind_safe::AssertUnwindSafe<test[6ec0502068880816]::run_test_in_process::{closure#0}>>
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/panicking.rs:544:19
[INFO] [stdout]   28:     0x5bb31cfe4655 - std[929523f510218772]::panic::catch_unwind::<core[28b146924c2f19c6]::panic::unwind_safe::AssertUnwindSafe<test[6ec0502068880816]::run_test_in_process::{closure#0}>, core[28b146924c2f19c6]::result::Result<(), alloc[95e62e727ddf147d]::string::String>>
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/panic.rs:359:14
[INFO] [stdout]   29:     0x5bb31cfe4655 - test[6ec0502068880816]::run_test_in_process
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/test/src/lib.rs:747:27
[INFO] [stdout]   30:     0x5bb31cfe4655 - test[6ec0502068880816]::run_test::{closure#0}
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/test/src/lib.rs:668:43
[INFO] [stdout]   31:     0x5bb31cfdf1b4 - test[6ec0502068880816]::run_test::{closure#1}
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/test/src/lib.rs:698:41
[INFO] [stdout]   32:     0x5bb31cfdf1b4 - std[929523f510218772]::sys::backtrace::__rust_begin_short_backtrace::<test[6ec0502068880816]::run_test::{closure#1}, ()>
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/sys/backtrace.rs:166:18
[INFO] [stdout]   33:     0x5bb31cfe76d2 - std[929523f510218772]::thread::lifecycle::spawn_unchecked::<test[6ec0502068880816]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/thread/lifecycle.rs:70:13
[INFO] [stdout]   34:     0x5bb31cfe76d2 - <core[28b146924c2f19c6]::panic::unwind_safe::AssertUnwindSafe<std[929523f510218772]::thread::lifecycle::spawn_unchecked<test[6ec0502068880816]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}> as core[28b146924c2f19c6]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/core/src/panic/unwind_safe.rs:275:9
[INFO] [stdout]   35:     0x5bb31cfe76d2 - std[929523f510218772]::panicking::catch_unwind::do_call::<core[28b146924c2f19c6]::panic::unwind_safe::AssertUnwindSafe<std[929523f510218772]::thread::lifecycle::spawn_unchecked<test[6ec0502068880816]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}>, ()>
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/panicking.rs:581:40
[INFO] [stdout]   36:     0x5bb31cfe76d2 - std[929523f510218772]::panicking::catch_unwind::<(), core[28b146924c2f19c6]::panic::unwind_safe::AssertUnwindSafe<std[929523f510218772]::thread::lifecycle::spawn_unchecked<test[6ec0502068880816]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}>>
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/panicking.rs:544:19
[INFO] [stdout]   37:     0x5bb31cfe76d2 - std[929523f510218772]::panic::catch_unwind::<core[28b146924c2f19c6]::panic::unwind_safe::AssertUnwindSafe<std[929523f510218772]::thread::lifecycle::spawn_unchecked<test[6ec0502068880816]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}>, ()>
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/panic.rs:359:14
[INFO] [stdout]   38:     0x5bb31cfe76d2 - std[929523f510218772]::thread::lifecycle::spawn_unchecked::<test[6ec0502068880816]::run_test::{closure#1}, ()>::{closure#1}
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/thread/lifecycle.rs:68:26
[INFO] [stdout]   39:     0x5bb31cfe76d2 - <std[929523f510218772]::thread::lifecycle::spawn_unchecked<test[6ec0502068880816]::run_test::{closure#1}, ()>::{closure#1} as core[28b146924c2f19c6]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   40:     0x5bb31d1cb67f - <alloc[95e62e727ddf147d]::boxed::Box<dyn core[28b146924c2f19c6]::ops::function::FnOnce<(), Output = ()> + core[28b146924c2f19c6]::marker::Send> as core[28b146924c2f19c6]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/alloc/src/boxed.rs:2277:9
[INFO] [stdout]   41:     0x5bb31d1cb67f - <std[929523f510218772]::sys::thread::unix::Thread>::new::thread_start
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/sys/thread/unix.rs:118:17
[INFO] [stdout]   42:     0x7eda1172faa4 - <unknown>
[INFO] [stdout]   43:     0x7eda117bca64 - clone
[INFO] [stdout]   44:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     test_strided_buffer_detection
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 2 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.42s
[INFO] [stdout] 
[INFO] [stderr] error: test failed, to rerun pass `--test stride_test`
[INFO] running `Command { std: "docker" "inspect" "6ca706509176368c658ddc7fc9d544ed8df408b7b89a185dd36dd30e23b9ee60", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6ca706509176368c658ddc7fc9d544ed8df408b7b89a185dd36dd30e23b9ee60", kill_on_drop: false }`
[INFO] [stdout] 6ca706509176368c658ddc7fc9d544ed8df408b7b89a185dd36dd30e23b9ee60
